<?php

use Illuminate\Http\Request;

//权限及登录
Route::prefix('auth')->group(function () {

    Route::get('/qyWxLogin', 'AuthorizationsController@qyWxLogin');
    Route::post('/wxLogin', 'AuthorizationsController@wxLogin');
    Route::post('/getMobile', 'AuthorizationsController@getMobile');
    // Route::get('/info','AuthorizationsController@info')->name('users.info');
});

//需授权的接口
Route::middleware('auth.token')->group(function () {
    //关于用户的路由
    Route::get('/user/detail', 'UserController@detail'); //员工头像等信息
    // Route::get('/user/memberQr','UserController@memberQr');//会员办卡的专属二维码

    //关于仪表盘中订单信息统计的路由
    Route::get('stat', 'DashboardController@stat');
    Route::get('statlist', 'DashboardController@statList');
    //海报
    Route::get('poster','UserController@posterBg');
    Route::get('posteruser','UserController@posterUser');




});
